package com.westdream.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.westdream.pojo.Userinfo;

public class UserAction extends Action {

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response, Object data) throws ServletException, IOException{
		Userinfo uinfo = (Userinfo)data;
		request.setAttribute("USERNAME", uinfo.getUserName());
		request.setAttribute("USERPWD", uinfo.getUserPwd());
		return "success";
	}	
}
